package com.sixfoot.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.sixfoot.domain.scale.Scale;
import com.sixfoot.foundation.persistence.springdata.SpecificationRepository;

public interface ScaleRepository extends SpecificationRepository<Scale, String> {
	@Query("FROM Scale scale WHERE scale.resource.id = ?1")
	List<Scale> findByResourceId(String resourceId, Pageable pageable);

}
